package de.jmda.gen.java.impl;

import static org.junit.Assert.assertTrue;

import org.apache.log4j.Logger;
import org.junit.Test;

import de.jmda.gen.GeneratorException;
import de.jmda.gen.java.DeclaredFieldGenerator;

public class JUT_DeclaredFieldGenerator
{
	private final static Logger LOGGER =
      Logger.getLogger(JUT_DeclaredFieldGenerator.class);

	@Test
	public void testDeclaredFieldGenerator() throws GeneratorException
	{
		DeclaredFieldGenerator generator =
				new DefaultDeclaredInstanceFieldGenerator();

		StringBuffer generated = generator.generate();

		LOGGER.debug(generated);

		assertTrue(
				"unexpected generated [" + generated + "]",
				"void field_name;".contentEquals(generated));
	}
}